//部门相关的api接口
import requst from '@/utils/request'
//  查询
export const queryPageALLapi = (name,degree,clazzId,page,pageSize) => requst.get(`/students?name=${name}&degree=${degree}&clazzId=${clazzId}&page=${page}&pageSize=${pageSize}`);
//  新增
export const saveStudent = (data) => requst.post('/students',data);
//  删除
export const deleteStudents = (ids) => requst.delete(`/students/${ids}`);

//根据id查询
export const getStudentById = (id) => requst.get(`/students/${id}`);

// 修改
export const updateStudent = (data) => requst.put('/students',data);
//违纪
export const updatescoreById = (id,score) => requst.put(`/students/violation/${id}/${score}`);

